﻿// // ******************************************************************
// //       /\ /|       @file       BaseRepository.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2024-11-07 15:11
// //    *(__\_\        @Copyright  Copyright (c) , 2024-11-07 15:11 Await
// // ******************************************************************

using Masa.BuildingBlocks.Data;
using Microsoft.Extensions.Localization;

namespace AutomaticSubtitles.Service.Infrastructure.Repositories.Base;

public class BaseRepository<TDbContext, TEntity, TKey>(TDbContext context, IUnitOfWork unitOfWork, IStringLocalizer<SharedResource> localize)
    : Repository<TDbContext, TEntity, TKey>(context, unitOfWork)
    where TEntity : class, IEntity<TKey>
    where TDbContext : DbContext, IMasaDbContext
    where TKey : IComparable
{
    // protected IStringLocalizer<SharedResource> Localize { get; } = localize;
}